package com.zzzyh.blogbyspring.service;

import com.zzzyh.blogbyspring.mapper.UserMapper;
import com.zzzyh.blogbyspring.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public UserInfo getUserInfoById(Integer id) {
        return userMapper.getUserInfoById(id);
    }

    public UserInfo getUserInfoByUserName(String userName) {
        return userMapper.getUserInfoByUserName(userName);
    }
}
